import request from '@/utils/request'
export function list(data) {
  return request({
    url: '/price/list',
    method: 'post',
    data
  })
}

export function exports(data) {
  return request({
    url: '/price/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}

export function importTemplate() {
  return request({
    url: '/price/importTemplate',
    method: 'post',
    responseType: 'blob'
  })
}
export function batchDelete(data) {
  return request({
    url: '/price/delete',
    method: 'post',
    data
  })
}
export function updateCode(data) {
  return request({
    url: '/price/updateNumber',
    method: 'post',
    data
  })
}
export function selectprice(id) {
  return request({
    url: '/price/selectprice/' + id,
    method: 'get'
  })
}

